package base.study.chapter6;

import java.util.Date;

/**
 * TODO(用一句话描述方法的主要功能)
 */
public class CloneTest implements Cloneable {

    private Date birthday;

    private String name;


    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public static void main(String[] args) throws CloneNotSupportedException {
        CloneTest cloneTest = new CloneTest();
        System.out.println(cloneTest.getBirthday());

        CloneTest copy = (CloneTest) cloneTest.clone();

        copy.getBirthday();
        System.out.println(cloneTest.getBirthday());
    }
}
